package br.com.jpoker.model;
import java.util.LinkedList;


@SuppressWarnings("serial")
public class CardList<E> extends LinkedList<Card>{

	private int maxCards;
	
	public CardList(int maxCards){
		this.maxCards = maxCards;
	}
	
	@Override
	public boolean add(Card c) {
		if(super.size() < maxCards){
			return super.add(c);
		}
		return false;
	}
	

}
